home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
e
/
mailinglists
/
amigae.0793july.archive
/
000064_crash!genie.ge….com!g.beasley2_Sat, 24 Jul 93 07:44:11 PST.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-26
|
1KB
Received: by bkhouse.cts.com (V1.16/Amiga)
id AA00000; Sat, 24 Jul 93 07:44:11 PST
Received: from relay2.geis.com by crash.cts.com with smtp
(Smail3.1.28.1 #15) id m0oJk7I-0000WUC; Sat, 24 Jul 93 06:58 PDT
Received: by relay2.geis.com
(1.37.109.4/15.6) id AA08903; Sat, 24 Jul 93 14:58:57 +0100
Message-Id: <9307241358.AA08903@relay2.geis.com>
Date: Sat, 24 Jul 93 14:39:00 BST
X-Genie-Id: 8476808
X-Genie-From: G.BEASLEY2
From: g.beasley2@genie.geis.com
To: amigae@bkhouse.cts.com
Subject: Re: Armageddon in E!
Reply: Item #4395553 from POLITIKILL@CUP.PORTAL.COM@INET#
Here is a little goodie that someone posted in the
AmigaNet:Programming conference. I am not sure if it has been posted
here yet, but it works well some here it is:
MODULE 'dos/dos'
PROC readStr(handle, buffer)
DEF bytes, size, eof=FALSE
bytes:=Read(handle, buffer, StrMax(buffer))
size:=bytes
IF InStr(buffer, '\n', 0) > -1
Seek(handle, -(bytes - InStr(buffer, '\n', 0)-1), OFFSET_CURRENT)
bytes:=InStr(buffer, '\n', 0)
ELSE
IF size < StrMax(buffer) THEN eof:=TRUE
ENDIF
buffer[bytes]:=0
ENDPROC eof
This is a replacement for v2.1b's ReadStr() function. This one is
generally 4 to 8 times faster and functions identically to E's.
Check it out.
BEANMAN...